import AttackResult from "./AttackResult";
import CardStatusBo from "./CardStatusBo";
export default class AttackCtx{
    attacker:CardStatusBo;
    target:CardStatusBo;
    spell:string; //技能
    result:AttackResult;

    constructor(attcker:CardStatusBo, target:CardStatusBo, result:AttackResult){
        this.attacker = attcker;
        this.target = target;
        this.result = result;
    }

    descibe():string{
        var desc;
        if(!this.result.hited){
            desc =` ${this.attacker.name} 没打中 ~ ~!`;
        }else {
            desc = `${this.attacker.name} 打中了 ${this.target.name}, 掉了${this.result.dmg}滴血`
        }
        return desc;
    }

} 





